package com.icetec.iceintel.inteliigence;

import android.util.Log;

import com.icetec.iceintel.netrequest.InstrutionSender;

/**
 * Created by amo on 2015/6/8.
 */
public class CommandparsingCenter {




    public  static  void commandPrasing(String sentences){


        Log.i("指令解析器",sentences);


        if((sentences.contains("全部")||sentences.contains("所有"))&&sentences.contains("灯")&&sentences.contains("开")){

            Log.i("指令解析器","打开所有的灯");
            InstrutionSender instrutionSender=new InstrutionSender();

            instrutionSender.turnOnAllLight();



        }


        if((sentences.contains("全部")||sentences.contains("所有"))&&sentences.contains("灯")&&sentences.contains("关")){


            InstrutionSender instrutionSender=new InstrutionSender();

            instrutionSender.turnOffAllLight();



        }






    }







}
